<?php
if(!$_GET[id]){
	echo "<script language=\"javascript\">
		location.href=\"index.php\";
		</script>";
		exit();
}
require_once "conn/conn.php";
//得到发布信息内容
$query="select * from tb_content where id='".$_GET[id]."' order by id desc limit 0,5";
$info=mysql_query($query);
$contentarr=array();
if($content=mysql_fetch_array($info,MYSQL_ASSOC)){
	//$content[dateline]=date("Y-m-d H:i:s",$content[dateline]);
}else{
		echo "<script language=\"javascript\">
		alert(\"内容不存在\");
		location.href=\"index.php\";
		</script>";
		exit();
}
mysql_close($connection);
?>
<div id="content">
  <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td width="80%" align="center" valign="top">
      	<div align="left">
      		<table >
      			<tr>
      				<td>&nbsp;</td>
      				<td><h2 align="center"><?php echo $content[title]?></h2></td>
      			</tr>
      			<tr>
      				<td>&nbsp;</td>
					<td><p><?php echo $content[content]?></p></td>
        		</tr>
        	</table>
      	</div>
	</td>
    </tr>
  </table>
</div>